package com.lovo.project.enums;

import lombok.Getter;

import javax.management.relation.Role;

/**
 * @title 角色状态枚举
 * @author: luo
 * @date: 2020/11/3 20:34
 */
@Getter
public enum RoleCodeEnum {

    /**添加角色异常*/
    ROLE_ADD_ERROR(2112,"添加角色异常"),
    /**删除角色异常*/
    ROLE_DELETE_ERROR(3112,"删除角色异常"),
    /**修改角色异常*/
    ROLE_UPDATE_ERROR(4112,"修改角色异常"),
    /**查询角色异常*/
    ROLE_FIND_ERROR(5112,"查询角色异常"),
    /**未知异常*/
    ROLE_UNKNOWN_ERROR(9999,"发生未知异常");

    /**状态码*/
    private Integer code;
    /**状态信息*/
    private String msg;

    RoleCodeEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }



}
